﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Web.Http;
using System.Web.Mvc;
using Newtonsoft.Json;

namespace arcyunnew.Controllers
{
    public class ProductController:Controller
    {
        public ActionResult AmpWx()
        {
            
            return View();
        }

        public ActionResult Ba()
        {
            string BA_IOSDownURL = ConfigurationManager.AppSettings["Boss_IOSDownURL"];
            string BA_AndroidDownURL = ConfigurationManager.AppSettings["Boss_AndroidDownURL"];
            ViewData["BA_IOSDownURL"] = BA_IOSDownURL;
            ViewData["BA_AndroidDownURL"] = BA_AndroidDownURL;
            return View();
        }

        public ActionResult Boss()
        {
            string Boss_IOS_DownURL = ConfigurationManager.AppSettings["Boss_IOSDownURL"];
            string Boss_Android_DownURL = ConfigurationManager.AppSettings["Boss_AndroidDownURL"];
            ViewData["Boss_IOS_DownURL"] = Boss_IOS_DownURL;
            ViewData["Boss_Android_DownURL"] = Boss_Android_DownURL;
            return View();
        }

        public ActionResult Yun()
        {
            return View();
        }

        public ActionResult CashDesk()
        {
            return View();
        }

        public ActionResult Skin()
        {
            return View();
        }

        public ActionResult Szj()
        {
            return View();
        }

        public ActionResult Amp()
        {
            return View();
        }

        public ActionResult BossNew()
        {
            string Boss_IOS_DownURL = "", Boss_Android_DownURL = "";
            Boss_IOS_DownURL = ConfigurationManager.AppSettings["Boss_IOSDownURL"];
            Boss_Android_DownURL = ConfigurationManager.AppSettings["Boss_AndroidDownURL"];
            ViewData[" Boss_IOS_DownURL"] = Boss_IOS_DownURL;
            ViewData["Boss_Android_DownURL"] = Boss_Android_DownURL;
            return View();
        }

        /// <summary>
        /// 零售通购买提交
        /// </summary>
        /// <param name="requestStr"></param>
        /// <returns></returns>
        public ActionResult BossNewSubmit(string requestStr)
        {
            Model.CR_OrderForApp requestModel = Newtonsoft.Json.JsonConvert.DeserializeObject<Model.CR_OrderForApp>(requestStr);

            var ret = new
            {
                messageCode = 5,
                message = "123"
            };
            return Json(ret, JsonRequestBehavior.AllowGet);
        }
    }
}